<link rel="stylesheet" href="resources/weui/dist/style/weui.min.css"/>
<div style="background-color: white">
	<form action="index.php/TrailProcess/traillist" method="post" id="trail_form">
	<div  style="padding-top: 15px;">
		<select style="margin-left: 15px;" name="AH_NH" value="<?php echo $searchsel['AH_NH']?>">
			<option value="2016" <?php if( $searchsel['AH_NH']=='2016'){
				echo "select='selected'";
			}?>>2016</option>
			<option value="2015" <?php if( $searchsel['AH_NH']=='2015'){
				echo "select='selected'";
			}?>>2015</option>
			<option value="2014" <?php if( $searchsel['AH_NH']=='2014'){
				echo "select='selected'";
			}?>>2014</option>
			<option value="2013" <?php if( $searchsel['AH_NH']=='2013'){
				echo "select='selected'";
			}?>>2013</option>
			<option value="2012" <?php if( $searchsel['AH_NH']=='2012'){
				echo "select='selected'";
			}?>>2012</option>
			<option value="2011" <?php if( $searchsel['AH_NH']=='2011'){
				echo "select='selected'";
			}?>>2011</option>
			<option value="2010" <?php if( $searchsel['AH_NH']=='2010'){
				echo "select='selected'";
			}?>>2010</option>
			<option value="2009" <?php if( $searchsel['AH_NH']=='2009'){
				echo "select='selected'";
			}?>>2009</option>
			<option value="2008" <?php if( $searchsel['AH_NH']=='2008'){
				echo "select='selected'";
			}?>>2008</option>
			<option value="2007" <?php if( $searchsel['AH_NH']=='2007'){
				echo "select='selected'";
			}?>>2007</option>
			<option value="2006" <?php if( $searchsel['AH_NH']=='2006'){
				echo "select='selected'";
			}?>>2006</option>
			<option value="2005" <?php if( $searchsel['AH_NH']=='2005'){
				echo "select='selected'";
			}?>>2005</option>
			<option value="2002" <?php if( $searchsel['AH_NH']=='2002'){
				echo "select='selected'";
			}?>>2002</option>
			<option value="2000" <?php if( $searchsel['AH_NH']=='2000'){
				echo "select='selected'";
			}?>>2000</option>
			<option value="1402" <?php if( $searchsel['AH_NH']=='1402'){
				echo "select='selected'";
			}?>>1402</option>
			<option value="1399" <?php if( $searchsel['AH_NH']=='1399'){
				echo "select='selected'";
			}?>>1399</option>
			<option value="1362" <?php if( $searchsel['AH_NH']=='1362'){
				echo "select='selected'";
			}?>>1362</option>
			<option value="" <?php if( $searchsel['AH_NH']==''){
				echo "select='selected'";
			}?>></option>
		</select>
		<input type="text" style="width: 90px;" name="AH_ZH" value="<?php echo  $searchsel['AH_ZH'] ?>">字
		<input type="text" style="width: 90px;" name="AH_BH" value="<?php echo  $searchsel['AH_BH'] ?>">号
	</div>
	<div style="margin-top: 15px;">
		<label style="margin-left: 15px;">当事人</label>
		<input type="text" id="search_val" placeholder="" value="<?php echo $searchsel['DSR']?>"/>
		<input type="text" id="DSR"  style="display: none" name="DSR" placeholder="" value="<?php echo $searchsel['DSR']?>">
		<input type="button" id="search_btn" value="搜索"/>
	</div>


	</form>
	<form  action="index.php/TrailProcess/detail" method="post" id="search_form">
		<input type="hidden" id="sel_ah" name='AH'/>
		<input type="hidden" id="CXMM" name='CXMM'/>
	</form>
	<div class="weui_dialog_confirm" id="dialog1" style="display: none;">
		<div class="weui_mask"></div>
		<div class="weui_dialog">
			<div class="weui_dialog_hd"><strong class="weui_dialog_title">输入密码</strong></div>
			<div class="weui_dialog_bd"><p>密码：<input type="text" id="xxmm"/></p>
				</div>
			<div class="weui_dialog_ft">
				<a href="javascript:;" class="weui_btn_dialog default" id="cancel">取消</a>
				<a href="javascript:;" class="weui_btn_dialog primary" id="search_trail">确定</a>
			</div>
		</div>
	</div>
<!--	<form>-->
<!--		<div class="row">-->
<!--			<div class="col-xs-4">-->
<!--				<select class="form-control">-->
<!--					<option>1</option>-->
<!--					<option>1</option>-->
<!--					<option>1</option>-->
<!--				</select>-->
<!--			</div><!-- /input-group -->
<!--			<div class="col-xs-7">-->
<!--				<input type="text" class="form-control" aria-label="...">-->
<!--			</div>-->
<!--			<div class="col-xs-1">-->
<!--				<input type="text" class="form-control" aria-label="...">-->
<!--			</div>-->
<!--		</div>-->
<!--	</form>-->
	<?php
	if (count($trails->informationmodels)==0){ ?>
	<h3>暂时没有查询到相关信息！</h3>
	<?php }else{ ?>
		<div>
	<div style="display: none" id="totalcount"><?php echo $trails->total ?></div>
	<ul class="list-group">
		<?php foreach ($trails->informationmodels as $item):  ?>
			<li class="list-group-item trail_li">
				<div  style="margin-bottom: 10px;">
					<div class="row" >
						<div class="col-xs-3">
							<span>案件号</span>
						</div>
						<div class="col-xs-9">
							<span class="anjianhao"><?php echo $item->AH ?></span>
						</div>
					</div>
					<div class="row">
						<div class="col-xs-3">
							<span>法院</span>
						</div>
						<div class="col-xs-9">
							<span><?php echo $item->CourtName ?></span>
						</div>
					</div>

					<div class="row">
						<div class="col-xs-3">
							<span>立案时间</span>
						</div>
						<div class="col-xs-9">
							<span><?php echo $item->LARQ ?></span>
						</div>
					</div>

					<div class="row">
						<div class="col-xs-3">
							<span>案件状态</span>
						</div>
						<div class="col-xs-9">
							<span><?php echo $item->AJZT ?></span>
						</div>
					</div>
					<div style="display: none" class="trailId"><?php echo $item->Id ?></div>
					<div class="row">
						<div class="col-xs-3">
							<span>当事人</span>
						</div>
						<div class="col-xs-9">
							<div class="col-xs-11" style="padding-left: 0px">
								<?php
									foreach($item->DSRModels as $dsr):
										echo  $dsr->SSDW .':'.$dsr->MC.'</br>';
									endforeach;
								?>
							</div>
							<div style="text-align:center;">
								<span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span>
							</div>
						</div>
					</div>
				</div>

			</li>
		<?php endforeach; ?>
	</ul>
		</div>
	<?php } ?>
	<div class="weui_cells" style="display: none" id="loadingInfo">
		<div  class="weui_cell">
			<div class="weui_cell_bd " >
				<p>数据加载中</p>
			</div>
		</div>
	</div>
</div>


<script>
	$('#search_btn').on('click',function(){
		$("#DSR").val($("#search_val").val());
		$('#trail_form').submit();
	});
</script>
<script src="resources/js/trail_process_list.js"></script>
